/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.dao;

import com.xy.biz.mes.domain.bo.ManufactureOrderGoodsBO;
import com.xy.biz.mes.domain.po.ManufactureOrderGoodsPO;
import com.xy.biz.mes.domain.query.ManufactureOrderGoodsQuery;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2022-1-19
 */
public interface ManufactureOrderGoodsDao {

    /**
     * 保存多个
     *
     * @param collection
     */
    int saveAllManufactureOrderGoods(Collection<ManufactureOrderGoodsPO> collection);

    /**
     * 更新
     *
     * @param manufactureOrderGoodsPO
     */
    int updateManufactureOrderGoods(ManufactureOrderGoodsPO manufactureOrderGoodsPO);

    int updateAllManufactureOrderGoods(Collection<ManufactureOrderGoodsPO> collection);

    int deleteManufactureOrderGoodsByOrderId(Long id);

    int deleteManufactureOrderGoods(Collection<Long> collection);

    /**
     * 查找多条
     *
     * @param query
     * @return
     */
    List<ManufactureOrderGoodsPO> listManufactureOrderGoods(ManufactureOrderGoodsQuery query);

}
